ifneq ($(KERNELRELEASE),)

obj-m := fpga_pci_drv.o 

else

#linux-kernel head path
KDIR := /usr/src/kernels/3.10.0 

all:
	make -C $(KDIR) M=$(PWD) modules 
clean:
	rm -f *.ko *.o *.mod.o *.mod.c *.symvers  modul*
endif
